package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.HotelRoomMoneyMapper;
import com.zking.ssm.sys.model.HotelRoomMoney;
import com.zking.ssm.sys.service.IHotelRoomMoneyService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelRoomMoneyServiceImpl implements IHotelRoomMoneyService {

    @Autowired
    private HotelRoomMoneyMapper hotelRoomMoneyMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelRoomMoneyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelRoomMoney record) {
        return hotelRoomMoneyMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelRoomMoney record) {
        return hotelRoomMoneyMapper.insertSelective(record);
    }

    @Override
    public HotelRoomMoney selectByPrimaryKey(Long id) {
        return hotelRoomMoneyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelRoomMoney record) {
        return hotelRoomMoneyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelRoomMoney record) {
        return hotelRoomMoneyMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelRoomMoney> list(HotelRoomMoney hotelRoomMoney, PageBean pageBean) {
        return hotelRoomMoneyMapper.list(hotelRoomMoney);
    }
}
